<template>
    <div class="bg">
        <router-view></router-view>
    </div>
</template>
<script setup>
    import index from "./views/index/index.vue"
    import NProgress from 'nprogress';
    import 'nprogress/nprogress.css';
    import router from "./router"

    // 页面加载进度条
    NProgress.configure({
        showSpinner: false
    });

    router.beforeEach((to,from)=>{
        NProgress.start();
    })
    router.afterEach((to,from)=>{
       NProgress.done();
    })

</script>
<style>
    #nprogress .bar {
        background: #de290a !important;
    }
</style>